package com.jcw.kqxt.mapper;

import com.jcw.kqxt.domain.Dept;
import com.baomidou.mybatisplus.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author qinhui
 * @since 2022-02-25
 */
@Mapper
public interface DeptMapper extends BaseMapper<Dept> {

    /**
     * 查询父级部门集合
     * @return
     */
    List<Dept> selectTopDeptList();

    /**
     * 通过id查询父部门
     * @param id
     * @return
     */
    Dept getPDeptById(Long id);

    Long selectDeptIdByDeptName(String deptName);
}
